package com.apartment.own.service;

import java.util.List;
import java.util.Map;

import com.apartment.common.core.domain.AjaxResult;
import com.apartment.common.utils.date.MyDetail;
import com.apartment.own.domain.OwnAccountDetails;
import com.apartment.own.domain.OwnAccountInstallment;
import com.apartment.own.request.bills.BillPreviewDTO;
import com.apartment.own.domain.OwnResHouseContract;
import com.apartment.own.request.house.HouseInsertRequest;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 账单详情Service接口
 * 
 * @author @Dog_E
 * @date 2020-08-28
 */
public interface IOwnAccountDetailsService extends IService<OwnAccountDetails>
{
    /**
     * 查询账单详情
     * 
     * @param id 账单详情ID
     * @return 账单详情
     */
    public OwnAccountDetails selectOwnAccountDetailsById(Long id);

    /**
     * 查询账单详情列表
     * 
     * @param ownAccountDetails 账单详情
     * @return 账单详情集合
     */
    public List<OwnAccountDetails> selectOwnAccountDetailsList(OwnAccountDetails ownAccountDetails);

    /**
     * 新增账单详情
     * 
     * @param ownAccountDetails 账单详情
     * @return 结果
     */
    public int insertOwnAccountDetails(OwnAccountDetails ownAccountDetails);

    /**
     * 修改账单详情
     * 
     * @param ownAccountDetails 账单详情
     * @return 结果
     */
    public int updateOwnAccountDetails(OwnAccountDetails ownAccountDetails);

    /**
     * 批量删除账单详情
     * 
     * @param ids 需要删除的账单详情ID
     * @return 结果
     */
    public int deleteOwnAccountDetailsByIds(Long[] ids);

    /**
     * 删除账单详情信息
     * 
     * @param id 账单详情ID
     * @return 结果
     */
    public int deleteOwnAccountDetailsById(Long id);

  //  void createPaymentList(HouseInsertRequest request);


    /**
     * @Description: 账单预览
     * @param billPreviewDTO:账单预览参数
     * @return: com.apartment.common.core.domain.AjaxResult
     * @Author: @Dog_E
     * @Date: 2020/9/16 0016 09:53
     **/
    List<OwnAccountInstallment> billPreview(BillPreviewDTO billPreviewDTO);

    void createPaymentList(OwnResHouseContract request);
}
